#ifndef RD_PROTOCOL_H
#define RD_PROTOCOL_H

#include "main.h"

#define OWN_PROTOCOL_NREGS 3

extern uint8_t uc_StartInCmd;//启动
extern uint8_t uc_StopInCmd;//停止

extern uint8_t uc_rd_s12;
extern uint8_t uc_rd_s13;
extern uint8_t uc_rd_s14;
extern uint8_t uc_rd_s21;
extern uint8_t uc_rd_s22;
extern uint8_t uc_rd_s23;
extern uint8_t uc_rd_s24;
extern uint8_t uc_rd_s31;
extern uint8_t uc_rd_s32;
extern uint8_t uc_rd_s33;
extern uint8_t uc_rd_s34;
extern uint8_t uc_rd_s41;
extern uint8_t uc_rd_s42;
extern uint8_t uc_rd_s43;
extern uint8_t uc_rd_s44;
extern uint8_t uc_rd_s51;
extern uint8_t uc_rd_s52;
extern uint8_t uc_rd_s53;
extern uint8_t uc_rd_s54;
extern uint8_t uc_rd_s61;
extern uint8_t uc_rd_s62;
extern uint8_t uc_rd_s63;
extern uint8_t uc_rd_s64;


extern void ownProtocol_FrameAnalysis(uint8_t *pbuf,size_t len);
extern uint8_t ucOwn_readOneRegProtocol(uint8_t reg);
/**
 * @brief 自定义协议数据处理
 */
extern void uc_rd_dataHandler(void);

#endif



